package cn.pink.core.gen.lock;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 *
 * @Author: pink
 * @Date: 2022/8/23 18:14
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Lock {
    /** 锁超时时间(秒) 默认10秒超时 */
    int timeout() default 10;
}
